package com.jt.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data  //set/get/toString方法只会重写自己的属性,不会添加父级的属性
@Accessors(chain = true) //链式加载规则
@NoArgsConstructor       //无参构造
@AllArgsConstructor      //全参构造
public class User {
    private Integer id;
    private String name;
    private Integer age;
    private String sex;

    //accessors重写了set方法
   /* public User setId(Integer id){
        this.id = id;
        return this;
    }*/

}
